function gets(pageNum) {
    var poNumber=$("#poNumber").val();
    var poName=$("#poName").val();
    var poState=$("#poState").val();
    var hName=$("#hName").val();
    var ghs=$("#ghs").val();
    var lefTime=$("#lefTime").val();
    var rightTime=$("#rightTime").val();
    var diNumer=$("#diNumer").val();
    var diName=$("#diName").val();
    var diSpecifications=$("#diSpecifications").val();
    var diUnit=$("#diUnit").val();
    var diCc=$("#diCc").val();
    var mfName=$("#mfName").val();
    var daName=$("#daName").val();
    var zlcc=$("#zlcc").val();
    var diNuyplbmer=$("#yplb").val();
    var pageN = pageNum;

    $.ajax({
            url: '/myspringboot/DrugInformationController/selectTransactionDetail',
            type: 'post',
            dataType: "json",
            data:{
                poNumber:poNumber,
                poName:poName,
                poState:poState,
                hName:hName,
                ghs:ghs,
                lefTime:lefTime,
                rightTime:rightTime,
                diNumer:diNumer,
                diName:diName,
                diSpecifications:diSpecifications,
                diUnit:diUnit,
                diCc:diCc,
                mfName:mfName,
                daName:daName,
                zlcc:zlcc,
                diNuyplbmer:diNuyplbmer,
                pageNum: pageN,
            },
            success:function(result){
                var result = result.data;
                yibu(result.pages,result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++){
                    var a = i + 1;//序号
                    var hospital = list[i].hospital;
                    var hName =null;
                    if(hospital == null){
                        hName =null;
                    }else{
                        hName = hospital.hName;
                    }
                    var purchaseOrder = list[i].purchaseOrder;
                    var poNumber = null;
                    if(purchaseOrder == null){
                        poNumber = null;
                    }else{
                        poNumber = purchaseOrder.poNumber;
                    }
                    var purchaseOrder = list[i].purchaseOrder;
                    var poName = null;
                    if(purchaseOrder ==null){
                        poName = null;
                    }else{
                        poName = purchaseOrder.poName;
                    }
                    var pco = list[i].purchaseOrder;
                    var poStateTime = null;
                    if(pco==null){
                        poStateTime = null;
                    }else{
                        poStateTime = pco.poStateTime;
                    }
                    var purchaseOrder = list[i].purchaseOrder;
                    var poEndTime = null;
                    if(purchaseOrder == null){
                        poEndTime = null;
                    }else{
                        poEndTime = purchaseOrder.poEndTime;
                    }
                    var diNumer = list[i].diNumer;
                    var diName = list[i].diName;
                    var drugAtegory = list[i].drugAtegory;
                    var daName =null;
                    if(drugAtegory == null){
                        daName = "null";
                    }else{
                        daName = drugAtegory.daName;
                    }
                    var diForm = list[i].diForm;
                    var diSpecifications = list[i].diSpecifications;
                    var diUnit = list[i].diUnit;
                    var diCc = list[i].diCc;
                    var dln = list[i].drugQualityLevel;
                    var dqlName = null;
                    if(dln == null){
                        dqlName = null;
                    }else{
                        dqlName = dln.dqlName;
                    }
                    var mn = list[i].manufacturer;
                    var mfName = null;
                    if(mn ==null){
                        mfName = null;
                    }else{
                        mfName=mn.mfName;
                    }
                    var diBiddingPrice = list[i].diBiddingPrice;
                    var diNewPrice = list[i].diNewPrice;
                    var psl = list[i].podiPd;
                    var podiSettlement = null;
                    if(psl == null){
                        podiSettlement = null;
                    }else{
                        podiSettlement = psl.podiSettlement;
                    }

                    var pslt = list[i].podiPd;
                    var podiSettlementTotal =null;
                    var podiWarehousing = null;
                    var podiWarehousingTotal = null;
                    if(pslt == null){
                        podiWarehousingTotal = null;
                        podiWarehousing = null;
                        podiSettlementTotal =null;
                    }else{
                        podiSettlementTotal = pslt.podiSettlementTotal;
                        podiWarehousing = pslt.podiWarehousing;
                        podiWarehousingTotal = pslt.podiWarehousingTotal;
                    }
                    var pstt = list[i].purchaseOrder;
                    var poState = null;
                    if(pstt == null){
                        poState = null;
                    }else{
                        if(pstt.poState == '0'){
                            poState = "审核中";
                        }else if(pstt.poState == '1'){
                            poState = "审核通过";
                        }else{
                            poState = "审核未通过";
                        }

                    }




                    var $tr = '<tr>'+
                        '<td>'+a+'</td>'+
                        '<td>'+hName+'</td>'+
                        '<td>'+poNumber+'</td>'+
                        '<td>'+poName+'</td>'+
                        '<td>'+poStateTime+'</td>'+
                        '<td>'+poEndTime+'</td>'+
                        '<td>'+diNumer+'</td>'+
                        '<td>'+diName+'</td>'+
                        '<td>'+daName+'</td>'+
                        '<td>'+diForm+'</td>'+
                        '<td>'+diSpecifications+'</td>'+
                        '<td>'+diUnit+'</td>'+
                        '<td>'+diCc+'</td>'+
                        '<td>'+dqlName+'</td>'+
                        '<td>'+mfName+'</td>'+
                        '<td>'+diBiddingPrice+'</td>'+
                        '<td>'+diNewPrice+'</td>'+
                        '<td>'+podiSettlement+'</td>'+
                        '<td>'+podiSettlementTotal+'</td>'+
                        '<td>'+poState+'</td>'+
                        '<td>'+podiWarehousing+'</td>'+
                        '<td>'+podiWarehousingTotal+'</td>'+
                        '</tr>'
                    $(".a").append($tr);
                }
            }
        }
    )
}